import {createRouter,createMemoryHistory} from 'vue-router'
///配音制作
import ProductionPage from '../views/Dubbingproduction/ProductionPage.vue'
///帮助
import Assist from '../views/Assist/Assistpage.vue'
///配音样式
import StylePage from '../views/Dubbingstyle/Stylepage.vue'
///首页
import homepage from '../views/Homepage/homepage.vue'
///购买会员
import Purchasembpage from '../views/Purchasemembership/Purchasembpage.vue'
///声音克隆
import Soundcloningpage from '../views/Soundcloning/Soundcloningpage.vue'
//声音广场
import Soundsquarepage from '../views/Soundsquare/Soundsquarepage.vue'
///叮当箱
import Tinkerboxpage from '../views/Tinkerbox/Tinkerboxpage.vue'
import Tinkerboxview from '../views/Tinkerbox/Tinkerboxview.vue'
import Login from '../views/User/Login.vue'
import MemberCenter from "../views/User/MemberCenter.vue";

const router = createRouter({
    history: createMemoryHistory(),
    routes:[
       
        { path: '/', component: ProductionPage },
        { path: '/:voiceActorId', name:"ProductionPage", component: ProductionPage,props: true },   //从声音广场页面跳转过来并且传入选中的配音角色的id
        { path: '/:audioId', name:"ProductionPageDubbing", component: ProductionPage,props: true },   //从会员中心的配音记录跳转过来并且传入选中的配音记录的id
        { path: '/assist', component: Assist },
        { path: '/stylepage', component: StylePage },
        { path: '/homepage', component: homepage },
        { path: '/Purchasembpage', component: Purchasembpage },
        { path: '/Soundcloningpage', component: Soundcloningpage },
        { path: '/Soundsquarepage', component: Soundsquarepage },
        { path: '/Tinkerboxpage', component: Tinkerboxpage },
        { path: '/Login', component: Login },
        { path: '/MemberCenter', component: MemberCenter },
        { path: '/tinkerboxview/:argument', name: 'Tinkerboxview', component: Tinkerboxview }, // 注意这里的路径和名称
      ]
      
  })
  export default router